import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
	component: Home,
	meta: {
		isShowTab: true
	}
  },
	{
		path: '/classify',
		name: 'Classify',
		component: () => import('../views/Classify.vue'),
		meta: {
			isShowTab: true
		}
	},
	{
		path: '/cars',
		name: 'Cars',
		component: () => import('../views/Cars.vue'),
		meta: {
			isShowTab: false
		}
	},
	{
		path: '/mine',
		name: 'Mine',
		component: () => import('../views/Mine.vue'),
		meta: {
			isShowTab: true
		}
	},
	{
		path: '/details',
		name: 'Details',
		component: () => import('../views/Details.vue'),
		meta: {
			isShowTab: false
		}
	}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
